﻿using Models;
using VirtualGameDAL;

namespace VirtualGameBLL
{
    public static partial class UserManager
    {
        public static bool AddUser(User user)
        {
            return UserService.AddUser(user);
        }
        public static bool Login(string id, string password)
        {
            User user = UserService.GetUserById(id);
            if (user != null && user.Password.Equals(password)) {
                return true;
            }
            return false;
        }
    }
}
